package com.sc.mapper;

import com.github.pagehelper.Page;
import com.sc.domain.PayMeter;
import com.sc.dto.PayMeterPageDto;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.time.LocalDateTime;
import java.util.List;

@Mapper
public interface PayMeterMapper {

    boolean save(PayMeter payMeter);

    boolean deleteById(Long id);

    boolean deleteByIds(List<Long> ids);

    boolean update(PayMeter payMeter);
    @Select("select * from pay_meter where id = #{id}")
    PayMeter get(Integer id);

    List<PayMeter> list(PayMeterPageDto payMeterPageDto);

}
